package com.test.design.pattern.adapter.object_adapter;



/**
 * @ClasName Client
 * @Descripution TODO
 * @Author leikw
 * @Date 2021/11/6 16:56
 * @Version V1.0
 */
public class Client {
    public static void main(String[] args) {
        Computer computer = new Computer();
        String msg = computer.readSD(new SDCardImpl());
        System.out.println(msg);

        System.out.println("===============");

        TFCardImpl tfCard = new TFCardImpl();
        String msg1 = computer.readSD(new SDAdapterTF(tfCard));
        System.out.println(msg1);
    }
}
